# -*- coding: utf-8 -*-
"""
author:码同学 极光
date:2023-01-07
desc: 
sample: 
"""
CITY = "北京"
def info():
    global CITY
    CITY = "上海"
    print(CITY)
info()  #
print(CITY)

sum=0
def get_add_sum(num):
    global sum
    sum+=num
    return sum

get_add_sum(10)
get_add_sum(20)
get_add_sum(30)
print(sum)
